package springboot.demo.pojo;
//员工表

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import springboot.demo.dao.DepartmentDao;

import javax.xml.crypto.Data;
import java.util.Date;

@lombok.Data
@NoArgsConstructor
@Repository
public class Employee {
    private Integer id;
    private String name;
    private String email;
    private Integer sex;//0：男，1：女
    private Department department;//一对多，多对一
    private Date birth;


    public Employee(Integer id, String name, String email, Integer sex, Department department) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.sex = sex;
        this.department = department;
        this.birth = new Date();
    }

    public Employee(int id, String st, String email, int sex, int i) {
    }
}



